#ifndef BLOCK_H
#define BLOCK_H
#include "common.h"
#include "qgl.h"
#include "math.h"
#include "GL/glu.h"

using namespace std;

class Block // a square/cube holding markers in the canvas
{
public:
    double m_size; // length of the square side
    float3 startCoord;
    int numMarkers; // number of markers
    int row; // y
    int col; // x
    int depth; // z
    // each marker has 5 components: x coord, y coord, z coord, index of the bud it belongs to and distance to the closest bud's end.
    // if distance == -2, this marker has been deleted.
    // distance has to be < R*INTLENGTH
   // double * m_markers;
    vector<double> m_markers;
    Block();
    ~Block();
    void updateSize(double size, float3 start);
};

#endif // BLOCK_H
